<?php
/**
 * 功能描述：	公共部分
 */

include SYS_PATH.'extend/function.php';
class Admin_CommServe extends Model {

    /**
     * Notes:示例->获取国家
     * Desc:链接mysql1，链接方式mysqli
     */
    function getcountryLists($limit){
        $limit = intval($limit) ? $limit : 3;
        $commM = new Admin_CommModel();
        return $commM->getcountryLists($limit);
    }

    /**
     * Notes:示例->获取城市
     * Desc:链接mysql2，链接方式pdo
     */
    function getCityLists($id){
        $commM = new Admin_CommModel();
        return $commM->getCityLists($id);
    }

    /**
     * Notes:示例->获取语言
     * Desc:链接oracle，链接方式pdo
     */
    function getUserInfo($uCode){
        $commM = new Admin_CommModel();
        return $commM->getUserInfo($uCode);
    }

    /**
     */
    function getDateTest2(){
        $sql['field'] = '*';
        $sql['table'] = 'country';
        $sql['limit'] = 10;
        $sql['locate']['Name'] = 'A';
        $sql['locate']['Continent'] = array('A','or');
        $sql['locate']['Region'] = array('A','or');
        $db = $this->conn('mysql1');
        return $db->select($sql);
    }
}